#include "stack.h"
#include "Queue.h"
void TestStack1()
{
	ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);
	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}
	printf("\n");

	printf("%d", STSize(&st));
	STDestroy(&st);
}
void TestQueue1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	//QueuePush(&q, 3);
	QueuePush(&q, 4);
	//QueuePush(&q, 5);
	//QueuePush(&q, 5);


	printf("%d\n",QueueSize(&q));

	/*while (!QueueEmpty(&q))
	{
		int front = QueueFront(&q);
		QueuePop(&q);
		printf("%d ", front);
	}
	printf("\n");*/
	QueueDestroy(&q);
}
int main()
{
	//TestStack1();
	TestQueue1();
	return 0;
}